﻿namespace OnWork.Admin.Util.Configs
{
    /// <summary>
    /// Jwt配置对象
    /// </summary>
    public class JwtConfiguration
    {
        /// <summary>
        /// 配置的KEY(appSetting对象名称)
        /// </summary>
        public const string KEY = "JWT";

        /// <summary>
        /// 秘钥
        /// </summary>
        public string SecretKey { get; set; } = "";

        /// <summary>
        /// 发布者
        /// </summary>
        public string Issuer { get; set; } = "";

        /// <summary>
        /// 接收者
        /// </summary>
        public string Audience { get; set; } = "";

        /// <summary>
        /// 过期时间 分钟
        /// </summary>
        public int AccessTokenExpiresMinutes { get; set; }
    }
}